package com.mall.b2c.domain.intergral;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mall.b2c.dao.MemberDao;
import com.mall.b2c.domain.member.MemberDomain;
import com.mall.b2c.enums.IntergralLogType;
import com.mall.common.domain.BaseEntity;

@Entity
@Table(name = "b2c_credit_intergral_log")
public class IntergralLogDomain extends BaseEntity{


	public int surplus;
	private String logText;// 日志内容
	private MemberDomain member;// 操作人
	private IntergralLogType logtype;//种类
	private int nums;//数量

	public String getLogText() {
		return logText;
	}

	public void setLogText(String logText) {
		this.logText = logText;
	}

	public int getSurplus() {
		return surplus;
	}

	public void setSurplus(int surplus) {
		this.surplus = surplus;
	}

	public IntergralLogType getLogtype() {
		return logtype;
	}
	public void setLogtype(IntergralLogType logtype) {
		this.logtype = logtype;
	}
	public int getNums() {
		return nums;
	}
	public void setNums(int nums) {
		this.nums = nums;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "member_id")
	public MemberDomain getMember() {
		return member;
	}

	public void setMember(MemberDomain member) {
		this.member = member;
	}
}
